<?php
class Event_log_m extends CI_Model{
	function _consttuct() {
		parent::_construct();
	}
	public  function user_insert($arr){
		$this->db->insert('event_log',$arr);
	}
	public function user_del($id){
		$this->db->where('id',$id);
		$this->db->delete('event_log');
	}
	public function user_update($id,$arr){
		$this->db->where('id',$id);
		$this->db->update('event_log',$arr);
	}
	public function user_count(){
		return  $this->db->count_all('event_log');
	}

	public function user_selectall(){
		$sql="SELECT * FROM event_log";
		return  $this->db->query($sql);
	}

	public function user_SelectByUserName($id){
		$sql="SELECT * FROM event_log WHERE id= ? ";
		return  $this->db->query($sql,array($id))->result();
	}

}
?>